<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>ajaxHeader</title>

</head>
<body>
<script language="JavaScript" src="/static/js/jquery-1.7.2.min.js"></script>
<script language="JavaScript">
    var header = {
        "Accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
        "Accept-Encoding":"gzip, deflate, br",
        "Accept-Language":"zh-CN,zh;q=0.8",
        "Cache-Control":"max-age=0",
        "Connection":"keep-alive",
        "Content-Type":"application/x-www-form-urlencoded",
        "Host":"ufo.shixiaotwo.com",
        "X-Requested-With": "XMLHttpRequest",
        "Origin":"https://ufo.shixiaotwo.com",
        "Upgrade-Insecure-Requests":"1",
        "User-Agent":"Mozilla/5.0 (Linux; U; Android 4.4.2; zh-cn; PE-TL20 Build/HuaweiPE-TL20) AppleWebKit/537.36 (KHTML, like Gecko)Version/4.0 MQQBrowser/5.3 Mobile Safari/537.36",
        "Cookie": "PHPSESSID=remvgilarftas72e87ocr4klc9;qlo=WyIzNTMyNDQiXQ%3D%3D;",
    };
    $(function () {
        $.ajax({
            url: "https://ufo.shixiaotwo.com/index/orderone.html",
            headers: {
                header
            },
            type: "post",
            data:{
                'paltform': "100",
                'taskType': "0",
                'buyerBind': "380737",
            },
            async:false,
            dataType: "jsonp",
            success: function (data) {
                console.log(data);
            },
            error: function (XMLHttpRequest, status, thrown) {
                // 状态码
                console.log(XMLHttpRequest.status);
                // 状态
                console.log(XMLHttpRequest.readyState);
                // 错误信息
                console.log(textStatus);
            }
        });
    });
</script>
</body>
</html>
